package com.ruoyi.ae.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.gather.api.domain.dto.SendProductGroupDto;
import com.ruoyi.gather.api.domain.dto.StoreGroupDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@FeignClient(contextId = "remoteAeStoreGroupService", value = ServiceNameConstants.AE_SERVICE)
public interface RemoteAeStoreGroupService {

    @GetMapping("/erp/productGroup/queryStoreGroupListInnerAuth/{storeId}")
    public R<Object> queryStoreGroupList(@PathVariable("storeId") Long storeId);

    @PostMapping("/erp/productGroup/createStoreGroupInnerAuth")
    public R<Object> createStoreGroup(@RequestBody StoreGroupDto dto);

    @PostMapping("/erp/productGroup/queryProductGroupIdByProductIdInnerAuth")
    public R<Object> queryProductGroupIdByProductId(@RequestBody Map<String, Object> map);

    @PostMapping("/erp/productGroup/bindingProdudtForGroupInnerAuth")
    public R<Object> bindingProdudtForGroup(@RequestBody SendProductGroupDto dto);
}
